FROM docker.io/openjdk:17
MAINTAINER itbaizhan
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
ARG JAR_FILE
COPY ${JAR_FILE} eureka-server.jar
EXPOSE 7001
ENTRYPOINT ["java","-jar","/eureka-server.jar"]